<?php
class Dog {
	public $maulong=8;
	
	public function __construct($color=0) {
		echo $this->printText ();
		$this->maulong=$color;
		
	}
	public function printText() {
		echo "Hello I am a dog";
	}
}

$dog = new Dog (12);
echo $dog->maulong;
$dog2 = new Dog (1);
var_dump($dog2);
//$Dog->printText();